import request from '@/utils/request'

// 查询机具绑定记录列表
export function listBindRecord(query) {
  return request({
    url: '/system/bindRecord/list',
    method: 'get',
    params: query
  })
}

// 查询机具绑定记录详细
export function getBindRecord(posBindRecordId) {
  return request({
    url: '/system/bindRecord/' + posBindRecordId,
    method: 'get'
  })
}

// 新增机具绑定记录
export function addBindRecord(data) {
  return request({
    url: '/system/bindRecord',
    method: 'post',
    data: data
  })
}

// 修改机具绑定记录
export function updateBindRecord(data) {
  return request({
    url: '/system/bindRecord',
    method: 'put',
    data: data
  })
}

// 删除机具绑定记录
export function delBindRecord(posBindRecordId) {
  return request({
    url: '/system/bindRecord/' + posBindRecordId,
    method: 'delete'
  })
}
